<odoo>
  <data>
    <!-- explicit list view definition -->
    <record model="ir.ui.view" id="professor_list_view">
      <field name="name">professor list</field>
      <field name="model">university.professor</field>
      <field name="arch" type="xml">
        <tree>
          <field name="f_name"/>
          <field name="l_name"/>
          <field name="gender"/>
          <field name="identity_card"/>
          <field name="address"/>
          <field name="birthday"/>
          <field name="start_date"/>
          <field name="email"/>
          <field name="phone"/>
        </tree>
      </field>
    </record>

    <!-- explicit form view definition -->
    <record model="ir.ui.view" id="professor_form_view">
      <field name="name">professor form</field>
      <field name="model">university.professor</field>
      <field name="arch" type="xml">
        <tree>
          <field name="f_name"/>
          <field name="l_name"/>
          <field name="gender"/>
          <field name="identity_card"/>
          <field name="address"/>
          <field name="birthday"/>
          <field name="start_date"/>
          <field name="email"/>
          <field name="phone"/>
          <field name="department_id"/>
          <field name="subject_id"/>
        </tree>
      </field>
    </record>

    <!-- actions opening views on models -->
    <record model="ir.actions.act_window" id="professor_action_window">
      <field name="name">professor window</field>
      <field name="res_model">university.professor</field>
      <field name="view_mode">tree,form</field>
    </record>

    <!-- Top menu item -->
    <menuitem name="University" id="university.menu_root" web_icon="university,static/description/icon.png"/>

    <!-- menu categories -->
    <menuitem name="Professors" id="university_professor_cat" parent="university.menu_root" sequence="1"/>

    <!-- actions -->
    <menuitem name="List of professors" id="university_professor_list" parent="university_professor_cat"
              action="professor_action_window"/>
  </data>
</odoo>